# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpaper
pkgver=2.2.5
pkgrel=0
pkgdesc="Library for handling paper characteristics"
url="https://github.com/rrthomas/libpaper/"
arch="all"
license="LGPL-2.1-or-later OR MIT"
makedepends="help2man"
checkdepends="bash"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/rrthomas/libpaper/releases/download/v$pkgver/libpaper-$pkgver.tar.gz"
options="!check" # really broken

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--disable-static
	make
}

check() {
	cd tests
	./run-test
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
db8da6f7c41a11458e917e4ecceab69c77ada54ac7de9ca13137f019ccca29d85f49573307327c05704697f8bdf7a044231c123b41e5033f78ad610202163808  libpaper-2.2.5.tar.gz
"
